<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../admin.inc.jsp"%>
<script>
function callback(success, msg) {
	if (success) {
		alertMsg.info(msg);
	}else{
		alertMsg.warn(msg);
	}
}

</script>
<div class="pageContent">
	<s:form name="myForm" id="form_userAuthInfo_detail" action="/admin/userAuthInfo/detail"
		method="POST" enctype="multipart/form-data" target="hidden_frame">
		<div class="panelBar">
			<ul class="toolBar">
	            <c:if test="${item.approveStatus == '01'}">
	            <li><a iconClass="accept"  href="${webContextPath}/admin/userAuthInfo/toPass?id=${item.id}" target="dialog" mask="true"
	               width="450" height="200" title="认证企业用户通过">
	               <span>认证企业用户通过</span>
	            </a></li>
	            <li><a iconClass="accept"  href="${webContextPath}/admin/userAuthInfo/toPassAuthUser?id=${item.id}" target="dialog" mask="true"
	               width="450" height="200" title="认证从业人员用户通过">
	               <span>认证从业人员用户通过</span>
	            </a></li>
	            <li><a iconClass="arrow_rotate_anticlockwise"  href="${webContextPath}/admin/userAuthInfo/toRevoke?id=${item.id}" target="dialog" mask="true"
	               width="450" height="200" title="驳回">
	               <span>驳回</span>
	            </a></li>
	            </c:if>
	        </ul>
		</div>
		<div class="pageFormContent" layoutH="58">
			<p class="nowrap">
				<label style="width:100px;">用户ID：</label>
				<input type="text" name="item.userId" value="${item.userId}"  readonly>
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">名称：</label>
				<input type="text" name="item.name" value="${item.name}"  readonly>
			</p>
			
			<%-- <p class="nowrap">
				<label style="width:100px;">公司简介：</label>
				<input type="text" name="item.companyDesc" value="${item.companyDesc}"  readonly>
			</p> --%>
			
			<%-- <p class="nowrap">
				<label style="width:100px;">公司城市：</label>
				<select disabled="disabled">
						<c:forEach var="item1" items="${cityList}">
			            	<option value="${item1.code}"  ${item.companyCityCode==item1.code?"selected":""}>${item1.name}</option>
			            </c:forEach>
					</select>
			</p> --%>
			
			<p class="nowrap">
				<label style="width:100px;">联系电话：</label>
				<input type="text" name="item.phone" value="${item.phone}"  readonly>
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">地址：</label>
				<input type="text" name="item.addr" value="${item.addr}"  readonly>
			</p>
			<p class="nowrap">
				<label style="width:100px;">申请类型：</label>
				<input type="text" name="item.authType" value="${item.authType==1?'企业用户':'个人用户'}"  readonly>
			</p>
			<p class="nowrap">
				<label style="width:100px;">认证类型：</label>
				<input type="text" name="item.type" 
				value="${item.type==1?'广告公司':item.type==2?'摄影棚 ':item.type==3?'模特经纪公司':
				item.type==6?'脚本创作/美术指导 ':item.type==7?'服装搭配/化妆 ':item.type==8?'自由摄影师/摄影助理 ':
				item.type==9?'修图师/后期制作 ':item.type==10?'其他商家 ':''}"  readonly>
			</p>
			<p style='height:60px; ' class="nowrap">
				<label style="width:100px;">营业执照照片：</label>
				<a href="${item.businessLicense }"  rel="businessLicense" target="_blank" title="营业执照照片"> 
				 <img alt="" src="${item.businessLicense }"  style='height:60px; border: 1px solid silver;'></a>
			</p>
			
			<p style='height:60px; ' class="nowrap">
				<label style="width:100px;">身份证正面照片：</label>
				<a href="${item.idCardPositive }"  rel="idCardPositive" target="_blank" title="身份证正面照片"> 
				 <img alt="" src="${item.idCardPositive }"  style='height:60px; border: 1px solid silver;'></a>
			</p>
			
			<p style='height:60px; ' class="nowrap">
				<label style="width:100px;">手持身份证的人照片：</label>
				<a href="${item.idCardBack }"  rel="idCardBack" target="_blank" title="手持身份证的人照片"> 
				 <img alt="" src="${item.idCardBack }"  style='height:60px; border: 1px solid silver;'></a>
			</p>
			
			<%-- <p style='height:60px; ' class="nowrap">
				<label style="width:100px;">手持身份证的人照片：</label>
				<a href="${item.idCardHolder }"  rel="idCardHolder" target="_blank" title="手持身份证的人照片"> 
				 <img alt="" src="${item.idCardHolder }"  style='height:60px; border: 1px solid silver;'></a>
			</p> --%>
			
			<p class="nowrap">
				<label style="width:100px;">申请时间：</label>
				<input type="text" name="item.applyTime" 
				value="<fmt:formatDate value='${item.applyTime}' pattern="yyyy-MM-dd HH:mm:ss" />" readonly="true">
			</p>

			<p class="nowrap">
				<label style="width:100px;">状态：</label>
				<select disabled="disabled">
						<option value="01"  ${item.approveStatus=="01"?"selected":""}>待审核</option>
						<option value="02"  ${item.approveStatus=="02"?"selected":""}>驳回</option>
						<option value="03"  ${item.approveStatus=="03"?"selected":""}>审核通过</option>
				</select>
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">审核意见：</label>
				<input type="text" name="item.approveRemark" value="${item.approveRemark}" readonly="true">
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">审核时间：</label> 
				<input type="text" name="item.approveTime" 
				value="<fmt:formatDate value='${item.approveTime}' pattern="yyyy-MM-dd HH:mm:ss" />" readonly="true">
			</p>
		</div>
	</s:form>
</div>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>